/**
 * Created by Wang on 2017/5/3.
 */
package software.lib.dao;

import software.lib.entity.User;

public interface UserDao extends BaseDao {
    default User findById(String idCard){
        return get(User.class,idCard);
    }

    default User findByLoginName(String loginName){
        return uniqueResult("from User where loginName=?",loginName);
    }
}
